

import 'package:isar_community/isar.dart';

part 'training_load_model.g.dart';

@collection
class TrainingLoadModel {

  TrainingLoadModel({
    this.dateTime,
    this.year,
    this.month,
    this.day,
    this.trainingLoadValue,
    this.suggestMax,
    this.suggestMin,
    this.criticalMax,
    this.readinessValue,
    this.readinessLevel,
    this.readinessStatus,
    this.isUploaded,
    this.userId,
    this.firmwareId,
    this.firmwareVersion,
    this.macAddress });

  Id? id;

  /// 日期
  @Index()
  String? dateTime;
  int? year;
  int? month;
  int? day;
  ///训练负荷值
  int? trainingLoadValue;
  ///建议区间最大值
  int? suggestMax;
  ///建议区间最小值
  int? suggestMin;
  ///区间临界值
  int? criticalMax;
  ///训练准备度值
  int? readinessValue;
  ///训练准备度等级
  ///   LOW = 0;//低
  ///     MEDIUM = 1;//中
  ///     HIGH = 2;//高
  int? readinessLevel;
  ///训练准备度状态
  ///   NULL = 0;//无数据
  ///     RECOVER = 1;//恢复模式
  ///     GEARED_UP = 2;//蓄势待发
  ///     MAX_EFFORT = 3;//全力冲刺
  ///     CAUTION = 4;//谨慎调整
  ///     MAINTAIN = 5;//稳中求进
  ///     OPTIMIZE = 6;//精准优化
  ///     CRITICAL = 7;//紧急暂停
  ///     BURNOUT_RIST = 8;//控量防崩
  ///     PRO_ZONE = 9;//勇竞巅峰
  int? readinessStatus;
  /// 是否上传到服务器
  bool? isUploaded;

  @Index()
  String? userId;
  //固件 id
  int? firmwareId;
  //固件版本
  String? firmwareVersion;

  @Index()
  String? macAddress;
}